﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SIGERP_Entidades;
using SIGERP_Negocio;
using System.Data.SqlClient;

namespace SIGERP_Presentacion
{
    public partial class frmReclamoReiterar : Form
    {
        Reclamo rec;
        Boolean reitero = false;

        public frmReclamoReiterar(Reclamo reclamo)
        {
            InitializeComponent();
            rec = reclamo;
        }

        private void btnReiterar_Click(object sender, EventArgs e)
        {
            Reiteracion reiteracion = new Reiteracion();
            reiteracion.reclamo = rec;
            reiteracion.observacion = txtObservacion.Text.ToString();
            Reclamos.reiterarReclamo(reiteracion);
            reitero = true;
            Close();
        }

        private void frmReiterarReclamo_Load(object sender, EventArgs e)
        {

        }

        private void btnCerrar_Click(object sender, EventArgs e)
        {
            Close();
        }

        public Boolean seReitero()
        {
            return reitero;
        }

        private void toolStripAyuda_Click(object sender, EventArgs e)
        {
            Utilities.mostrarAyuda(this, (this.GetType().ToString() + ".htm").Replace("SIGERP_Presentacion.", ""));
        }

    }
}
